<?php
session_cache_expire(999999999);
if(!isset($_SESSION)) 
{ 
session_start(); 
} 
include '../../operations/connection.php';
$idboard = $_REQUEST['idboard'];
$newlang = $_REQUEST['newlang'];

if ($_REQUEST['newlang'] == "EN") {
	include "../../value/value_en.php";
} else if($_REQUEST['newlang'] == "VN") {
	include "../../value/value_vn.php";
}
else {
	include "../../value/value_kr.php";
}

$loadboard = mysql_query("select e.IDEmployee, e.FullName,b.* from employee e, board b where e.IDEmployee = b.IDEmployee order by b.CreatedDate desc");

?>
		<div style="height: 10px;"></div>
		<div class="navigation-button">
			<a href="#" onclick="onclickAddNewNotice(this);"><img
				src="images/new.png" /> </a>
			<div><?php echo $l_addnew?></div>
		</div>
		<br style="clear: both" /> <br />

		<table class="board" width="100%">
			<tr>
				<th align="center" width="5%"><?php echo $l_no?></th>
				<th width="3%"></th>
				<th width="50"><?php echo $l_title?></th>
				<th width="15%"><?php echo $l_author?></th>
				<th width="10%"><?php echo $l_created_date?></th>
				<th width="10%"><?php echo $l_views?></th>
				<th width="10%"></th>
			</tr>
			<?php
			$i =0;
			while ($row = mysql_fetch_array($loadboard)){
				$i++;
				?>
			<tr>
				<td align="center" width="5%"><?php echo $i;?>
				</td>
				<td align="left"><?php if($row[Type]=="VN"){?> <img
					src="images/flag_12.gif" height="15" width="18" /> <?php }else if($row[Type]=="KR"){?>
					<img src="images/flag_14.gif" height="15" width="18" /> <?php }?>
				</td>
				<td width="50"><a href="#" onclick="processPreviewNotice('<?=$row[ID]?>',this);"><?php echo $row[Title]?> </a>
				</td>
				<td align="center" width="15%"><?php echo $row[FullName]?></td>
				<td align="center" width="10%"><?php echo $row[CreatedDate]?></td>
				<td align="center" width="10%"><?php echo $row[View]?></td>
				<td align="center" width="10%">
					<a href="#" onclick="processPreviewNotice('<?=$row[ID]?>',this);" title="<?php echo $l_View?>"
						style="text-align: left;margin-left: -25px"> <img src="images/view.png" /> </a> 
					<a href="#" style="padding-left:15px;" onclick="onclickEditGeneralNotice('<?=$row[ID]?>','edit',this);" 
					title="<?php echo $l_edit?>"> <img src="images/edit-admin.png" /></a>
					<a href="#" style="padding-left:15px;" onclick="if(confirm('<?php echo $l_confirm_deleteproject?>')){ processDeleteNotice('<?=$row[ID]?>','<?=$id_employee?>',this); return true;}else{return false;}"
					 title="<?php echo $l_delete?>" ><img src="images/delete-admin.png" /></a>
				</td>
				<?php }?>
		
		</table>
<?php mysql_close($connection);?>